package com.lagou.edu.service;

import com.lagou.edu.config.FeignLog;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author stevejson
 * feign兼容了spring的注解，来拼接url
 */
@FeignClient(value = "lagou-service-resume", configuration = FeignLog.class, fallback = ResumeFailBack.class,path = "/resume")
public interface ResumeServiceFeignClient {
    @GetMapping("/openstate/{userId}")
    public Integer getDefaultResumeStatus(@PathVariable Long userId);
}
